//
//  FCCInterFace.h
//  MobileShoppingMall
//
//  Created by 冯传昌 on 2021/4/21.
//  Copyright © 2021 冯传昌. All rights reserved.
//
#define WX_APP_Key @"wxafef3b4cb43bccb5"
#define WX_APP_Secret @"900e371b979aa3dd0bab3047aae60726"
#define WX_APP_UniversalLink @"https://www.baidu.com/"




//线上地址
#define MainHost @"https://5g.qiyeji.com/api"
#define MainUrl @"https://5g.qiyeji.com"


//本地测试
//#define MainHost @"http://192.168.1.14:10002/api"
//#define MainUrl @"http://192.168.1.14:10002"


#pragma mark - 用户
//接口 - 登录   POST     {telphone   code}
#define userLogin [NSString stringWithFormat:@"%@/reg/login",MainHost]
//接口 - 注册   POST     {telphone   code    inviter邀请人    name     photo}
#define userRegister [NSString stringWithFormat:@"%@/reg/user/app",MainHost]
//接口  发送验证码   GET    telphone
#define getCommonCode [NSString stringWithFormat:@"%@/util/get_common_code",MainUrl]
//获取用户信息详情
#define getUserInfo [NSString stringWithFormat:@"%@/user/detail",MainHost]
//用户升级  POST   source   type    openid
#define UserUpgrade [NSString stringWithFormat:@"%@/user/upgrade",MainHost]
//用户中心  GET
#define UserHome [NSString stringWithFormat:@"%@/user/home",MainHost]
//提现处理  POST
#define UserWithdraw [NSString stringWithFormat:@"%@/user/withdraw",MainHost]
//用户修改个人资料
#define UserInfoUpdate [NSString stringWithFormat:@"%@/user/info/update",MainHost]
//邀请记录   GET  token
#define UserRecordList [NSString stringWithFormat:@"%@/user/record/list",MainHost]







#pragma mark - 商城
//获取商城顶部数据   GET       type  1,tb商城,2,指南商城,3,优选商城
#define getShopTopsInfo [NSString stringWithFormat:@"%@/product/tops",MainHost]
//商品详情   GET    productId  /订单号
#define ProductDetail [NSString stringWithFormat:@"%@/product/detail",MainHost]
//指南商城内容  GET    page  /页数
#define GuideMallList [NSString stringWithFormat:@"%@/member/list",MainHost]
//指南商城 顶部数据展示  GET
#define GuideMallTop [NSString stringWithFormat:@"%@/member/tops",MainHost]
//TB  优选商城搜索    POST
#define TBShopSearch [NSString stringWithFormat:@"%@/product/list",MainHost]
//商品评价列表  GET
#define CommentList [NSString stringWithFormat:@"%@/product/comment/list",MainHost]
//小铺搜索  POST   /page
#define ProductSlist [NSString stringWithFormat:@"%@/product/slist",MainHost]




#pragma mark - 充值
//用户充值    POST   source:     amount:金额     telphone：手机号    openid
#define ChargeOrder [NSString stringWithFormat:@"%@/charge/order",MainHost]




#pragma mark - 订单
//支付状态    POST   /orderno 订单号
#define ProductorderState [NSString stringWithFormat:@"%@/productorder/state",MainHost]
//订单物流   GET    /orderno 订单号
#define ProductorderTrack [NSString stringWithFormat:@"%@/productorder/track",MainHost]
//确认删除   POST      /orderno 订单号
#define ProductorderDelete [NSString stringWithFormat:@"%@/productorder/delete",MainHost]
//取消订单   POST   /orderno  订单号
#define ProductorderCancel [NSString stringWithFormat:@"%@/productorder/cancel",MainHost]
//确认收货   POST     orderno 订单号
#define OrderReceiveConfirm [NSString stringWithFormat:@"%@/productorder/receive",MainHost]
//去支付   POST  orderno订单号
#define ProductorderPay [NSString stringWithFormat:@"%@/productorder/pay",MainHost]
//商品订单页详情    GET   /orderno  订单号
#define ProductorderDetail [NSString stringWithFormat:@"%@/productorder/detail",MainHost]
//商品订单页列表  GET  status状态 0 全部 1-待支付 2-待发货 3-待收货  page分页
#define ProductOrderList [NSString stringWithFormat:@"%@/productorder/ulist",MainHost]
//商品订单下单   POST
#define PlaceProductOrder [NSString stringWithFormat:@"%@/productorder",MainHost]
//商品订单确认   POST
#define ProductOrderConfirm [NSString stringWithFormat:@"%@/productorder/confirm",MainHost]




#pragma mark - 订单明细
//订单详情   GET   /{itemId}
#define ProductorderItemDetail [NSString stringWithFormat:@"%@/productorderitem/detail",MainHost]
//会员商品订单页列表   GET   /{status}/{page}   status  1 待评价   2 售后
#define ProductorderItemList [NSString stringWithFormat:@"%@/productorderitem/list",MainHost]
//申请退款    POST   /itemId
#define ProductorderItemRefund [NSString stringWithFormat:@"%@/productorderitem/refund",MainHost]
//申请退货    POST   /itemId
#define ProductorderItemReject [NSString stringWithFormat:@"%@/productorderitem/reject",MainHost]
//确认完成    POST   /itemId
#define ProductorderItemDone [NSString stringWithFormat:@"%@/productorderitem/done",MainHost]
//确认评价    POST   /itemId
#define ProductorderItemComment [NSString stringWithFormat:@"%@/productorderitem/comment",MainHost]





#pragma mark - 购物车
//商品购物车列表    GET   /itemId
#define ProductCartList [NSString stringWithFormat:@"%@/product/cart/list",MainHost]
//购物车商品   POST   /{skuId}/{productId}
#define ProductCart [NSString stringWithFormat:@"%@/product/cart",MainHost]
//商品购物车清空    POST      return : true false
#define ProductCartClear [NSString stringWithFormat:@"%@/product/cart/clear",MainHost]
//商品购物车删除
#define ProductCartDelete [NSString stringWithFormat:@"%@/product/cart/delete",MainHost]




#pragma mark - 收货地址
//删除收货地址   POST
#define DeliverDel [NSString stringWithFormat:@"%@/deliver/del",MainHost]
//创建/编辑收货地址   POST
#define Deliver [NSString stringWithFormat:@"%@/deliver",MainHost]
//收货列表     GET
#define DeliverList [NSString stringWithFormat:@"%@/deliver/list",MainHost]




#pragma mark - 通用
//上传图片
#define UploadImage [NSString stringWithFormat:@"%@/upload/image",MainUrl]







#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface FCCInterFace : NSObject
@end
NS_ASSUME_NONNULL_END




